<script type="text/javascript">
 $(function(){
	 $("#timePicker1").hunterTimePicker();
	 $("#timePicker2").hunterTimePicker();
	 $.post("tellerManage/getpaperAndBranch",function(json){
		 var contenta="<option value='' >请选择</option>";
		 var contentb="<option value='' >请选择</option>";
		 var contentc="<option value='' >请选择</option>";
		 var contentd="<option value='' >请选择</option>";
 		for(i=0;i<json.certificates.length;i++){
			contenta+="<option value="+json.certificates[i].certificateType+">"
			+json.certificates[i].certificatesName+"</option>"
		}
 		for(i=0;i<json.AddressStreet.length;i++){
			contentb+="<option value="+json.AddressStreet[i].streetid+">"
			+json.AddressStreet[i].street+"</option>"
		}
 		for(i=0;i<json.serverTypes.length;i++){
			contentc+="<option value="+json.serverTypes[i].id+">"
			+json.serverTypes[i].name+"</option>"
		}
 		for(i=0;i<json.orgCorps.length;i++){
			contentd+="<option value="+json.orgCorps[i].id+">"
			+json.orgCorps[i].name+"</option>"
		}
		
		$("#leadPaperType").html(contenta);
		$("select[name='street']").html(contentb);
		$("select[name='innerNo']").html(contentd);
		$("select[name='serverType']").html(contentc);
		 $.post("branchManage/getUpdateBranchInfo",getUpdateBranchInfo,"json");
		 
	 },"json")
	 
}); 
function openTime(s){
	var res=$(s).val();
	if(res=="1"){
		$("input[name='activeDate']").val(getDate(Date.now()));
	}
	if(res=="0"){
		$("input[name='activeDate']").val("");
	}
}
</script>
<div class="pageContent">
	<form method="post" action="branchManage/updateBranch" class="pageForm" onsubmit="return validateCallback(this,dialogAjaxDone);">
		<div class="pageFormContent" layoutH="58" hight="600px">
			<div id="orgNo">
			<p >
				<label>网点编号：</label>
				<input name="orgNo"  type="text" size="30" class="" readonly="readonly"/>
				
			</p>
			</div>
			<p>
				<label>网点名称：</label>
				<input  name="orgName"  type="text" size="30" maxlength="30" class="validRequired" />
			</p>
			<p>
				<label>网点类型：</label>
				<select name="type"  class="required ">
					<option value="1">直属</option>
					<option value="2">个体入股</option>
				</select>
			</p>
			<p>
				<label>网点性质：</label>
				<select name="property" class="required ">
					<option value="1">政府机关</option>
					<option value="2">国企</option>
					<option value="3">企业</option>
					<option value="4">个体</option>
				</select>
			</p>
			<p>
				<label>负责人姓名：</label>
				<input  name="leadName"  type="text" size="30" class="validRequired validName" />
			</p>
			<p>
				<label>负责人证件类型：</label>
				<select flag="paperCode" id="leadPaperType" name="leadPaperType" class="">
				
				</select>
			</P>
			<p>
				<label>负责人证件号码：</label>
				<input  name="leadPaperNo"  type="text" size="30" class="validRequired validIdentity" />
			</p>
			<p>
				<label>联系人姓名：</label>
				<input  name="linkMan"  type="text" size="30" class="validRequired validName" />
			</p>
			<p>
				<label>联系电话(手机)：</label>
				<input  name="telephone"  type="text" size="30" class="validRequired validMobile" />
			</p>
			<p>
				<label>传真：</label>
				<input  name="fax"  type="text" size="30" class="validTelePhone" />
			</p>
			<p>
				<label>E-MAIL：</label>
				<input  name="email"  type="text" size="30" class="validEmail" />
			</p>
			<p>
				<label>邮政编码：</label>
				<input name="postcode"  type="text" size="30" class="validPostCode" />
			</p>
			<p>
				<label>地址：</label>
				<input name="address"  type="text" size="30" class="validRequired" />
			</p>
			<p>
				<label>所在街道：</label>
				<select name="street" class="validRequired">
					
				</select>
			
			</p>
			<p>
				<label>所在社区：</label>
				<input name="community"  type="text" size="30" class="" maxlength="30"/>
			
			</p>
			<p>
				<label>所属地区：</label>
				<input name="region" value="山东省青州市"  type="text" size="30" maxlength="10" class="validRequired" />
			
			</p>
			<p>
				<label>所属部门：</label>
				<select name="innerNo" class="validRequired">
				</select>
			</p>
			<p>
				<label>营业时间（始） ：</label>
				<input type="text" id="timePicker1" name="timePicker1" class="validRequired" />
			</p>
			<p>
				<label>营业时间（止） ：</label>
				<input type="text" id="timePicker2" name="timePicker2" class="validRequired"/>
			</p>
			<p>
				<label>上级网点/机构：</label>
				<input  name="superIorOrg"  type="text" size="30" class="" />
			</p>
			<p>
				<label>服务类型：</label>
				<select name="serverType" class="validRequired">
				</select>
			</p>
			<p>
				<label>网点管理员：</label>
				<input  name="principal"  type="text" size="30" class="validRequired" />
			</p>
			<p>
				<label>网点状态：</label>
				<select name="status" onchange="openTime(this)">
					<option value="0">未启用
					<option value="1">启用
				</select>
			</p>
			<!-- <p>
				<label>轧账标志：</label>
				<input  name="checkStatus"  type="text" size="30" maxlength="1" class="validRequired" />
			</p> -->
			<p>
				<label>申请日期：</label>
				<input  name="applyDate"  type="text" size="30" class="date" />
			</p>
			<p>
				<label>启用日期 ：</label>
				<input  name="activeDate"  type="text" size="30" class="date" />
			</p>
			<p>
				<label>最近一次年检日期：</label>
				<input  name="laeDate"  type="text" size="30" class="date" />
			</p>
			<p>
				<label>最近一次年检情况：</label>
				<input  name="laeCircs"  type="text" size="30" class="" maxlength="30" />
			</p>
			<p>
				<label>银行名称：</label>
				<input  name="bankName"  type="text" size="30" class="" maxlength="30" />
			</p>
			<p>
				<label>银行网点名称：</label>
				<input  name="bankBranchName"  type="text" size="30" class="" maxlength="30" />
			</p>
			<p>
				<label>银行账号：</label>
				<input  name="bankAccountCode"  type="text" size="30" class="validBankNo" />
			</p>
			<p>
				<label>银行账户名：</label>
				<input  name="bankAccountName"  type="text" size="30" class="validName" />
			</p>
			<!-- <p>
				<label>企业名称：</label>
				<input  name="enterCode"  type="text" size="30" class="validRequired" maxlength="24" />
			</p> -->
			<p>
				<label>备注：</label>
				<input  name="remark"  type="text" size="30" class="" maxlength="30"  />
			</p>
		</div>
		<div class="formBar">
			<ul> 
				<li>
				<div class="buttonActive"><div class="buttonContent"><button id="submit" type="submit" class="valid">提交</button></div></div>
				</li>
			</ul>
		</div>
	</form>
</div>